package com.lt.suangua.utils;

import android.content.Context;
import android.text.TextUtils;

/**
 * Desc:
 * Created by chenshichao-pc
 * Date: 2023-12-13 10:40
 */
public class UserInfoUtils {
    public static boolean isLogin(Context context) {
        String token = (String) SPUtils.get(context, "token", "");
        if (TextUtils.isEmpty(token)) {
            return false;
        }
        return true;
    }

    public static String getToken(Context context) {
        String token = (String) SPUtils.get(context, "token", "");
        if (TextUtils.isEmpty(token)) {
            token = "";
        }
        return token;
    }
}
